import requests

content = {'q': 'crawler', 'per_page': '5'}

r = requests.get('https://api.github.com/search/repositories', params=content)

# 获取请求内容
print(r.url)

# 返回的结果
# https://api.github.com/search/repositories?q=crawler&per_page=5